﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Pavilion.DesignerTool
{
    public class EraserTool : IDrawTool
    {
        private BrushTool brushTool;

        public EraserTool()
        {
            brushTool = new BrushTool();
            brushTool.Size = 5;
            brushTool.BrushColor = Color.Transparent;
        }

        public void Draw(System.Windows.Point point, float pressurePercentage)
        {
            brushTool.Draw(point, pressurePercentage);
        }

        public string Name { get { return this.GetType().Name; } }

        public float Size 
        {
            get { return brushTool.Size; }
            set { brushTool.Size = value; }
        }

        public int Opacity
        {
            get { return brushTool.Opacity; }
            set { brushTool.Opacity = value; }
        }
    }
}
